array is an array value, expression or variable.
UBound returns a Number containing the largest available subscript for the given array.
Commonly used to obtain the size of an array before using a looping control mechanism to systematically manipulate elements of the array.
The following examples are for both Basic and Crystal syntax:
Local NumberVar Array simpleArray;
dateArray = Array (CDate(#12/25/1998#), CDate(#12/24/1999#))
Local DateVar Array dateArray;
dateArray := [CDate(#12/25/1998#), CDate(#12/24/1999#)];
Note: Unlike Visual Basic, only 1 dimensional arrays are supported in Crystal Reports. Also, array subscripts start at 1 in Crystal Reports and not 0 as is the default in Visual Basic.
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |